import TIM from 'tim-js-sdk'
import TIMUploadPlugin from 'tim-upload-plugin'

// 初始化 SDK 实例
console.log(process.env.VUE_APP_APPID)

	
const tim = TIM.create({
  SDKAppID: window.genTestUserSig('',Number(process.env.VUE_APP_APPID)).SDKAppID
})

window.setLogLevel = tim.setLogLevel

// 无日志级别
tim.setLogLevel(1)

// 注册 cos
tim.registerPlugin({ 'tim-upload-plugin':TIMUploadPlugin })
export default tim
